import React from 'react';
import {Table, Row, Col, Form, Input, Icon, InputNumber, Radio, DatePicker, Select, Upload, Button, Switch, Modal, Popconfirm, Tabs, message} from 'antd';
import moment from 'moment'
import OperatorConstant from "../../utils/OperatorConstant";

const R = require('ramda');
const TabPane = Tabs.TabPane;
const FormItem = Form.Item;
const dateFormat = 'YYYY-MM-DD';


export default Form.create({wrappedComponentRef: true})(class ApprovalList extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            disabled: true,
            type: "",
        }
    }



    columns = [
        {title: '合同协议号', dataIndex: 'contractno', key: 'contractno', width: '150px'},
        {title: '费用科目', dataIndex: 'chargetype', key: 'chargetype', width: '150px'},
        {title: '本次结算金额(CNY)', dataIndex: 'cost_amt', key: 'cost_amt', width: '150px'},
        {title: '产生时间', dataIndex: 'createtime', key: 'createtime'},
        {title: '备注', dataIndex: 'memo', key: 'memo'},
    ];


    render() {
        let dataSource = R.isNil(this.props.dataSource) ? {} : this.props.dataSource;


        return (
            <div>
                <Table dataSource={dataSource} columns={this.columns} bordered={true} size={'middle'} scroll={{ x: true}}/>
            </div>
        );
    }
})


